from rest_framework import serializers
from .models import CacheRecord 

class CacheRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = CacheRecord 
        #fields = '__all__'
        fields = ['key','key_type']

class GraphSerializer(serializers.ModelSerializer):
    class Meta:
        model = CacheRecord
        #fields = '__all__'
        fields = ['key','key_type']
